package servlets.customer;

import java.net.URI;



/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author eva
 */
public class AndroidProduct {

    URI imageUrl;
    String productName;
    int price;
    int quantity;
    int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public AndroidProduct(URI imageUrl, String productName, int price, int quantity) {
        this.imageUrl = imageUrl;
        this.productName = productName;
        this.price = price;
        this.quantity = quantity;
    }
    
    public int getSubTotal() {
        return (quantity * price);
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public URI getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(URI imageUrl) {
        this.imageUrl = imageUrl;
    }

}
